package com.foreknow.elm.controller;

import com.foreknow.elm.po.Orderdetailet;
import com.foreknow.elm.service.OrderdetailetService;
import com.foreknow.elm.service.impl.OrderdetailetServiceImpl;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.List;

public class OrderdetailetController {
    public Object listOrderDetailetByOrderId(HttpServletRequest request){
        Integer orderId = Integer.valueOf(request.getParameter("orderId"));
        OrderdetailetService service = new OrderdetailetServiceImpl();
        List<Orderdetailet> list = service.listOrderDetailetByOrderId(orderId);
        return list;
    }
}
